/*
 * Created on Jan 23, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.client.module;

import javax.swing.JPanel;

import org.vectrics.VectricsException;

/**
 * @author mmoore
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class ModulePanel extends JPanel {
	
	/**
	 * 
	 */
	public ModulePanel() {
		super();
	}

	protected final Module findModule(Class moduleClass) throws UnknownModuleException {
		return(ModuleManager.getInstance().findModule(moduleClass));		
	}

	
	protected final void showModule(Module module) throws VectricsException {
		ModuleManager.getInstance().showModule(module);		
	}
	protected final Module showModule(Class moduleClass) throws VectricsException {
		return(ModuleManager.getInstance().showModule(moduleClass));		
	}

	protected final void showPreviousModule() throws VectricsException {
		ModuleManager.getInstance().showPreviousModule();		
	}

}
